﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using FG_Admin_DAL;

namespace FG_Admin_BLL
{
    public class UsersBLL
    {
        UsersDAL dal = new UsersDAL();
        /// <summary>
        /// 返回所有用户信息
        /// </summary>
        /// <returns></returns>
        public List<Users> GetUsers(int PageIndex, int PageSize)
        {
            return dal.GetUsers(PageIndex, PageSize);
        }
        /// <summary>
        /// 返回当前用户信息
        /// </summary>
        /// <param name="UsersID">当前用户编号</param>
        /// <returns></returns>
        public Users_Message GetUsers_Message(int UsersID)
        {
            return dal.GetUsers_Message(UsersID);
        }
        /// <summary>
        /// 用户的禁用和启用
        /// </summary>
        /// <param name="ss"></param>
        /// <returns></returns>
        public int Users_Forbidden(Users ss)
        {
            return dal.Users_Forbidden(ss);
        }
        /// <summary>
        /// 返回当前雪场的所有评论
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="SnowPack_ID">雪场编号</param>
        /// <returns></returns>
        public List<Users_Comment> GetUsers_Comment(int PageIndex, int PageSize, int SnowPack_ID)
        {
            return dal.GetUsers_Comment(PageIndex, PageSize, SnowPack_ID);
        }
        /// <summary>
        /// 返回当前雪场的所有评论
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="UsersID">用户编号</param>
        /// <param name="SnowPack_ID">雪场编号</param>
        /// <returns></returns>
        public List<Users_Comment> GetUsers_Comment(int PageIndex, int PageSize, int SnowPack_ID, int UsersID)
        {
            return dal.GetUsers_Comment(PageIndex, PageSize, SnowPack_ID,UsersID);
        }
        /// <summary>
        /// 删除该评论
        /// </summary>
        /// <param name="Users_Comment_ID">评论编号</param>
        /// <returns></returns>
        public int Delete_Comment(int Users_Comment_ID)
        {
            return dal.Delete_Comment(Users_Comment_ID);
        }
        /// <summary>
        /// 批量删除评论
        /// </summary>
        /// <param name="str">包含评论编号的字符串</param>
        /// <returns></returns>
        public int Delete_Comment(string str)
        {
            return dal.Delete_Comment(str);
        }
    }
}
